

<h1 align="left">{$title} [<a href="manage_promotion.html">Quản lý Khuyến Mãi</a>]</h1>
    
<div align="center">
{$message}
{$sucess_msg}
</div>
<table class="hotel-form" bordercolor="#CCCCCC" border="1" cellspacing="0" cellpadding="5" style="border-collapse:collapse;margin: 20px auto; min-width: 500px">
        <tr>
            <td colspan="2" align="right" style="font-size:24px">
                [ <a href="javascript:document.ManageChiefForm.submit();" class="save_button" >Lưu</a> ] ||
                [ <a href="manage_promotion.html">Hủy</a> ]
            </td>
        </tr>
        {if $hotel_id}
        <tr>
          <th align="right">ID:</th>
          <td>{$hotel_id}</td>
            <input type="hidden" value="{$hotel_id}" name="hotel_id">
        </tr>
        {/if}
    <tr>
        <th align="right">Tên khuyến mãi:</th>
        <td><input type="text" name="hotel_name" id="hotel_name" value="{$hotel_name}"></td>
    </tr>
    <tr>
        <th align="right">Mô tả:</th>
        <td>
            <textarea rows="" cols="" name="hotel_desc" id="hotel_desc">{$hotel_desc}</textarea>
        </td>
    </tr>
    <tr>

        <th align="right">Ảnh: </th>
        <td id="images_wrapper" colspan="2">
        {if $hotel_img}<img src="{$hotel_img}" alt="" width="100" height="auto"> {/if}
            <input type="file" name="file_image" id="file_image" />
        </td>
        <tr>
            <th align="right">Vị trí:</th>
            <td><input type="text" name="hotel_pos" id="hotel_pos" value="{$hotel_pos}"></td>
        </tr>

        <tr>
            <th align="right">Trạng thái: </th>
            <td>{html_radios name='hotel_status' options=$hotel_status selected=$status_id}</td>
        </tr>

  </tr>


        <tr>
            <td colspan="2" align="center">
                <input type="submit" class="save_button" value="Lưu thay đổi" />
                <input type="reset" value="Reset form" />
            </td>
        </tr>
</table>
{literal}
<script>
    $(function(){
        $('#hotel_desc').tinymce({
            // Location of TinyMCE script
            script_url : 'javascript/tiny_mce/tiny_mce.js',

            /*// General options
            theme : "advanced",

            // Theme options
            theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
            theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
            theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
            theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
            theme_advanced_toolbar_location : "top",
            theme_advanced_toolbar_align : "left",
            theme_advanced_statusbar_location : "bottom",
            theme_advanced_resizing : true,

            // Example content CSS (should be your site CSS)
            content_css : "css/content.css",

            // Drop lists for link/image/media/template dialogs
            template_external_list_url : "lists/template_list.js",
            external_link_list_url : "lists/link_list.js",
            external_image_list_url : "lists/image_list.js",
            media_external_list_url : "lists/media_list.js",*/

            // Replace values for the template plugin
            template_replace_values : {
                username : "Some User",
                staffid : "991234"
            }
        });
    });

</script>

{/literal}